Fixes for gdk_memory_texture_new_subtexture
authorMatthias Clasen <mclasen@redhat.com>
Sun, 8 May 2022 17:53:04 +0000 (13:53 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 13 May 2022 13:30:46 +0000 (09:30 -0400)
commitf33c5218364377ac41a6bbaf36e1a8a98412a368
tree37ff8503e05f2eec4411e9e356c402644ec92c7f
parent122fa679a8a15610e0a3164bdf2e4ad1702f3fb1
Fixes for gdk_memory_texture_new_subtexture

There were several mistakes here.

The width of subtextures was set to the width of
the main texture, the data size wasn't properly
calculated, and the preconditions were inverted.
Yay us!
gdk/gdkmemorytexture.c